package com.frejoys.common.vo.admin;


import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.math.BigDecimal;


// 商品展示数据
@Data
public class GoodsVo {

    // 商品id
    @Schema(type = "Integer", name = "id", description = "商品id", required = true, defaultValue = "1")
    private Integer id;

    // 商品名称
    @Schema(type = "String", name = "name", description = "商品名称", required = true, defaultValue = "八匹狼")
    private String name;

    // 商品封面
    @Schema(type = "String", name = "cover", description = "商品封面图", required = true, defaultValue = "xxx/xxx.jpg")
    private String cover;

    @Schema(type = "Integer", name = "storeId", description = "店铺id", required = true, defaultValue = "1")
    private Integer storeId;

    // 店铺名称
    @Schema(type = "String", name = "storeName", description = "店铺名称", required = true, defaultValue = "天天旗舰店")
    private String storeName;

    // 品类id
    @NotNull(message = "{600}")
    @Schema(type = "Integer", name = "categoryId", description = "品类id", required = true, defaultValue = "1")
    private Integer categoryId;

    // 品类名称
    @Schema(type = "String", name = "categoryName", description = "品类名称", required = true, defaultValue = "零食")
    private String categoryName;

    // 原价
    @Schema(type = "BigDecimal", name = "oriPrice", description = "原价", required = true, defaultValue = "100")
    private BigDecimal oriPrice;

    // 现价
    @Schema(type = "BigDecimal", name = "price", description = "现价", required = true, defaultValue = "100")
    private BigDecimal price;

    // 售出数量变量
    @Schema(type = "Integer", name = "soldCount", description = "售出数量", required = true, defaultValue = "100")
    private Integer soldCount;

    // 排序
    @Schema(type = "Integer", name = "sort", description = "排序", required = true, defaultValue = "100")
    private Integer sort;

}
